Xceed DataGrid for WPF v7.3 Documentation
Welcome to Xceed DataGrid, Editors, and 3D Views for WPF v7.3 / Xceed DataGrid for WPF / Code Snippets / Displaying Tooltips
In This Topic
    Displaying Tooltips
    In This Topic

    The following example demonstrates how to display the entire content of a cell in a tool tip.

    XAML
    Copy Code
    <Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
      <Grid.Resources>
        <xcdg:DataGridCollectionViewSource x:Key="cvs_orders"
                                        Source="{Binding Source={x:Static Application.Current}, 
                                                         Path=Orders}"/>
        <Style TargetType="{x:Type xcdg:DataCell}">
          <Setter Property="ToolTip"
                  Value="{Binding RelativeSource={RelativeSource Self}, Path=Content}"/>
        </Style>
      </Grid.Resources>
      <xcdg:DataGridControl x:Name="OrdersGrid"
                           ItemsSource="{Binding Source={StaticResource cvs_orders}}"/>        
    </Grid>